<style>
    .ui-popup-modal .ui-dialog-body {
        /*padding: 0;*/
    }
    .step-info{
        margin:20px;
    }
</style>
<div class="step-info">
    <div class="step-wrap">
        <table class="steps" cellspacing="0" cellpadding="0">
            <tbody>
            <tr>
                <td class="first-step" ng-class="{active: step==0}">
                    <div>1.选择项目<span class="after"></span></div>
                </td>
                <td ng-class="{active: step==1}">
                    <div><span class="before"></span>2.设定交付信息</div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<form ng-show="step == 0" style="width: 800px; min-height: 200px; margin:40px 20px 20px" name="project">
    <div ui-checkbox-array
         ng-model="selectedProjects"
         show-all-filter="true"
         select-all-name="projectName"
         list="projects">
    </div>
</form>
<form ng-show="step == 1" class="edit-delivery-info" name="edit" novalidate>
    <div class="section">
        <h3 class="title">客户经理信息</h3>
        <table>
            <tr ng-repeat="customManage in profile.custom_manage">
                <td>
                    <span>姓名：</span>
                    <i class="glyphicon glyphicon-search"></i>
                    <input class="form-control" id="{{'edit-delivery-info-username' + customManage.id}}" type="text"
                           placeholder="请输入姓名"
                           name="clientName"
                           data-type="custom_manage"
                           ng-model="customManage.name">
                </td>
                <td>
                    <span>手机：</span>
                    <input class="form-control" type="text" placeholder="请输入手机号"
                           name="clientPhone"
                           ng-model="customManage.mobile"
                           disabled>
                </td>
                <td>
                    <span>邮箱：</span>
                    <input class="form-control" style="width: 240px" type="text" placeholder="请输入邮箱"
                           name="clientEmail"
                           ng-model="customManage.email"
                           disabled>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="hint" ng-show="edit.clientName.$error.required">请输入姓名</div>
                </td>
            </tr>
        </table>
    </div>

    <div class="section">
        <h3 class="title">交付顾问信息</h3>
        <table>
            <tr ng-repeat="deliver in profile.deliver">
                <td style="padding-bottom: 10px;">
                    <span>姓名：</span>
                    <i class="glyphicon glyphicon-search"></i>
                    <input class="form-control" id="{{'edit-delivery-info-username' + deliver.id}}" type="text"
                           placeholder="请输入姓名"
                           name="counselorName"
                           data-type="deliver"
                           ng-model="deliver.name">
                </td>
                <td style="padding-bottom: 10px;">
                    <span>手机：</span>
                    <input class="form-control" type="text" placeholder="请输入手机号"
                           name="counselorPhone"
                           ng-model="deliver.mobile"
                           disabled>
                </td>
                <td style="padding-bottom: 10px;">
                    <span>邮箱：</span>
                    <input class="form-control" style="width: 240px" type="text" placeholder="请输入邮箱"
                           name="counselorEmail"
                           ng-model="deliver.email"
                           disabled>
                </td>
                <td style="padding-bottom: 10px; padding-left: 10px">
                    <a class="tab-text-important" ng-if="profile.deliver.length > 1"
                       ng-click="localRemove('deliver', deliver)">删除</a>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="hint" ng-show="edit.counselorName.$error.required">请输入姓名</div>
                </td>
            </tr>
            <tr>
                <td class="4">
                    <p class="mt10"><a class="tab-text" ng-click="localAdd('deliver')">+增加</a></p>
                </td>
            </tr>
        </table>
    </div>
</form>
<div class="ui-dialog-footer" style="margin-bottom: 0;">
    <div class="ui-dialog-button" style="margin-bottom: 0;">
        <button type="button" i-id="okPrev" class="ui-dialog-autofocus" ng-show="step==1" ng-click="prevStep()">
            上一步
        </button>
        <button type="button" i-id="okNext" class="ui-dialog-autofocus" ng-show="step==0"
                ng-disabled="!selectedProjects.length" ng-click="selectedProjects.length && nextStep()">
            下一步
        </button>
        <button type="button" i-id="ok" autofocus="" class="ui-dialog-autofocus" ng-show="step==1"
                ng-disabled="!profileValid()" ng-click="profileValid() && authorizeBatchSave()">
            确定
        </button>
        <button type="button" i-id="cancel" ng-click="close()">
            取消
        </button>
    </div>
</div>

